package id.co.rho.scoring.cid.client.listener;

import com.extjs.gxt.ui.client.event.ComponentEvent;
import com.extjs.gxt.ui.client.event.KeyListener;

/**
 * Created by IntelliJ IDEA.
 * User: frizky
 * Date: 12/5/11
 * Time: 11:58 AM
 */
public abstract class OnEnterListener extends KeyListener {
    public void componentKeyUp(ComponentEvent event) {
        if (event.getKeyCode() == 13) { //if press enter key
            onKeyUp();
        }
    }

    protected abstract void onKeyUp();

}
